package com.etcxy.dispatch;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App1 {

	public static void main(String[] args) {

		ApplicationContext ac = new ClassPathXmlApplicationContext("com/etcxy/dispatch/beans.xml");
		DBUtils db = (DBUtils) ac.getBean("dbutils2");

		System.out.println(db.getName() + "  " + db.getDrivername());
	}

}
